﻿using System;
using System.Collections.Generic;
using System.Text;

namespace DbView
{
	/*
		The idea of these structures and interfaces is to separate the 
		use of actual forms from the presenter and model.
		
		The terminology is very form-based, but there is no reason why the 
		interface cannot be implemented for a console app. (in theory).
	*/
	/* Moved elsewhere.
	struct CopyTableParameters
	{
		public string SourceTableName;
		public string SourceConnectionTag;
		public string TargetTableName;
		public string TargetConnectionTag;
	}

	interface ICopyTableForm
	{
		bool ShowForm();
		void SetModel(Model model);
		CopyTableParameters Configuration { get; set; }
	}
	*/
	interface IRefreshTableForm
	{
		bool ShowForm();
		void SetModel(Model model);
		string SourceDb { get; set; }
		string TargetDb { get; set; }
		string SourceTable { get; set; }
	}

	interface ITemplateEditForm
	{
		bool ShowForm();
		Template EditItem { get; set; }
	}
}
